﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Exentials.Xoox.Styles
{
    public class XBorderPr : XElementBase
    {
        private XColor _color;
        private XAttributeBase<XBorderStyle> _style;

        public XBorderPr(string tag)
            : base(tag)
        {
            _style = new XAttributeBase<XBorderStyle>(this, "style");
        }

        public XColor Color
        {
            get 
            {
                if (_color == null)
                {
                    _color = new XColor("color");
                    this.GetXElement().Add(_color.GetXElement());
                }
                return _color;  
            }
        }

        public XBorderStyle Style
        {
            get { return _style.Value; }
            set { _style.Value = value; }
        }
    }
}
